import instance from '.';

// 获取商品分类
export const productCategoryList = (): IPR<productCategoryListParams[]> =>
  instance.get('/productCategory/list/withChildren');
// 获取所有品牌列表
export const brandListAll = (): IPR<productCategorys[]> =>
  instance.get('/brand/listAll');
// 获取商品分类
export const productListAll = (
  params: CProductListAllParams,
): IPR<IgetListRes<CProductListAllRes>> =>
  instance.get('/product/list', { params });
// 获取商品属性分类 /productAttribute/category/list

export const proCategoryListAll = (
  params: proCategoryList,
): IPR<IgetListRes<proCategoryListRes>> =>
  instance.get('/productAttribute/category/list', { params });
